<%@ taglib uri="/WEB-INF/myfaces_html.tld" 	prefix="h" %>
<%@ taglib uri="/WEB-INF/myfaces_core.tld" 	prefix="f" %>
<%@ taglib uri="/WEB-INF/tomahawk.tld"     	prefix="t" %>
<%@ taglib uri="/WEB-INF/myfaces_sandbox.tld"   prefix="s" %>

<f:view>
    <jsp:include page="/intestazione.jsp">
        <jsp:param name="titolo" value="Stampa Acquisti Fornitore"/>
    </jsp:include>
    <jsp:include page="/menu.jsp"/>
    <script language="javascript" src="./script/popup_full_center.js"></script>
    <script language="javascript" src="./script/ripristinoSessione.js"></script>
    <h:form binding="#{dettaglioStampaTotaleAcquistiFornitore.form}">          
        <t:saveState value="#{beanStampaTotaleAcquistiFornitore}"/>
        <table class="dettaglio" align="center" style="width:500px; height:200px"> 
            <tbody>          
         
            <tr>                   
                <td class="etichettaDettaglio"><strong><t:outputLabel for="nome" value="Nome Stampa"/></strong></td>
                <td><t:inputText id="nome" value="#{beanStampaTotaleAcquistiFornitore.nomeStampa}" styleClass="dettaglio_InputText" immediate="true" disabled="true" size="50"/></td>
            </tr>    
            
            <tr>                   
                <td class="etichettaDettaglio"><strong><t:outputLabel for="tipoOutput" value="Tipo Stampa" /></strong></td>
                <td>
                    <h:selectOneMenu id="tipoOutput" value="#{beanStampaTotaleAcquistiFornitore.tipoOutput}" styleClass="find">
                        <f:selectItem itemValue="0" itemLabel="Pdf"/>                 
                    </h:selectOneMenu>
                    <br/>                
                </td>
            </tr>    
            
            <tr>       
                <td class="etichettaDettaglio"><strong><t:outputLabel for="dataDa" value="Data Da"/></strong></td>
                <td><h:outputText value=" (gg/mm/aaaa)" style="font-size:6.5pt"/>
                    <br/>
                    <t:inputCalendar id="dataDa" renderAsPopup="true" renderPopupButtonAsImage="true" popupDateFormat="dd/MM/yyyy" size="10" maxlength="10" styleClass="campoTesto" value="#{beanStampaTotaleAcquistiFornitore.dataDa}" required="true">
                        <s:convertDateTime type="date" pattern="dd/MM/yyyy"/>
                    </t:inputCalendar>
                    <br/>
                    <h:message style="color: red; font-size: 8pt" for="dataDa" showDetail="true" showSummary="false" />
                </td>
            </tr>   

            <tr>       
                <td class="etichettaDettaglio"><strong><t:outputLabel for="dataA" value="Data A"/></strong></td>
                <td><h:outputText value=" (gg/mm/aaaa)" style="font-size:6.5pt"/>
                    <br/>
                    <t:inputCalendar id="dataA" renderAsPopup="true" renderPopupButtonAsImage="true" popupDateFormat="dd/MM/yyyy" size="10" maxlength="10" styleClass="campoTesto" value="#{beanStampaTotaleAcquistiFornitore.dataA}" required="true">
                        <s:convertDateTime type="date" pattern="dd/MM/yyyy"/>
                        <s:validateCompareTo operator="ge" for="dataDa" message="La prima data deve essere maggiore della seconda." />
                    </t:inputCalendar>
                    <br/>
                    <h:message style="color: red; font-size: 8pt" for="dataA" showDetail="true" showSummary="false" />
                </td>
            </tr>   

            <tr >
                <td>
                    <h:commandLink styleClass="commandLink_Style" dir="RTL" action="benvenuto" >
                        <t:graphicImage url="/image/go-home.png" border="0"/>
                    </h:commandLink>        
                </td>
                <td >
                    <t:commandButton id="stampa2" image="/image/bottoneStampa.png" action="#{dettaglioStampaTotaleAcquistiFornitore.stampaJasper}" >
                    </t:commandButton>    
                </td>
            </tr>   
        </table>

        <t:inputHidden value="#{beanStampaTotaleAcquistiFornitore.nomeStampa}"/>    
        <t:inputHidden value="#{beanStampaTotaleAcquistiFornitore.tipoStampa}"/>    
        <t:inputHidden value="#{beanStampaTotaleAcquistiFornitore.tipoReport}"/>    
        <t:inputHidden value="#{beanStampaTotaleAcquistiFornitore.tipoSalvataggio}"/>            
    </h:form> 
    
 
    <h:form id="erroriDataBase" rendered="false">
        <f:verbatim><table><td align="left" class="messaggiErrore" height="2px"></f:verbatim>           
        <h:messages style="color: red" showDetail="true" showSummary="false"/>
        <f:verbatim></td></table></f:verbatim>
    </h:form>  
   
    <jsp:include page="/piePagina.jsp"/>      
</f:view>